package com.culture.config.dao.mapper;

import java.util.List;

import com.culture.config.dao.entity.JobInfo;
import com.culture.config.dao.entity.JobQuery;
import com.github.pagehelper.Page;

import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface JobMapper {
    JobInfo get(Long id);
    Integer add(JobInfo jobInfo);
    Integer update(JobInfo jobInfo);
    Integer delete(JobInfo jobInfo);
    Integer lock(JobInfo jobInfo);
    Integer keepLock(JobInfo jobInfo);
    Integer unlock(JobInfo jobInfo);
    Page<JobInfo> page(JobQuery jobQuery);
    List<JobInfo> list(JobQuery jobQuery);    
}
